class xx {
    constructor() {

    }
    init() {
        let num = document.querySelector('.box>i');
        let jia = document.querySelector('.sp>div:nth-child(1)');
        let jian = document.querySelector('.sp>div:nth-child(2)');
        jia.onclick = function() {
            num.textContent = Number(num.textContent) + 1;
        }
        jian.onclick = function() {
            num.textContent = Number(num.textContent) - 1;
        }
    }
}
export {
    xx
}